package controleur;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import vue.WindowEditor;
/**
 * clean the textarea in the principal window when user clic on the option "clean window"
 * @author morhib & moyart
 *
 */
public class cleanerControl implements ActionListener {

	WindowEditor w;

	public cleanerControl(WindowEditor window) {
		this.w=window;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		this.w.getTextArea().setText(w.getTextArea().getText());
		this.w.getTextArea().setText("");;
	}

}
